<?php

namespace app\shopapi\controller;

use app\admin\model\shop\Category;
use app\common\controller\Shopapi;
use app\shopapi\model\pay\ShopInfeed;
use app\shopapi\model\ShopAdmin;
use app\shopapi\model\ShopBills;
use app\shopapi\model\ShopBillsExport;
use app\shopapi\model\ShopBillsStat;
use app\shopapi\model\ShopUser;
use think\Log;

/**
 * 店铺统计接口
 */
class Stat extends Shopapi
{
    protected $noNeedRight = '*';

    public function report()
    {
        $stat_model = new \app\shopapi\model\Stat();

        $type = input('type',0);

        $start_date = input('start_date','');

        $end_date = input('end_date','');

        $stat_chart = input('stat_chart',0);

        $res = $stat_model->report($this->shopauth->shop_id,$type,$start_date,$end_date,$stat_chart);

        $this->success('',$res);

    }

}